package com.practice.autoconfigure.redisson;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yangdejun
 * @date 2021/11/1 16:00
 */
@Component
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {

    private String serverAddress;

    private String port;

    private String password;

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "RedissonProperties{" +
                "serverAddress='" + serverAddress + '\'' +
                ", port='" + port + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
